package com.jkoss.wine.warehouse.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.SqlHelper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.jkoss.wine.warehouse.mapper.WareReportMapper;
import com.jkoss.wine.warehouse.service.IWareReportService;

/**
 * 仓库 服务实现类
 * 
 * @Author Ning
 * @Version 1.0, 2018-10-19
 * @See
 * @Since com.jkoss.wine.warehouse.service.impl
 * @Description: TODO
 */
@Service
public class WareReportServiceImpl implements IWareReportService {
	@Autowired
	private WareReportMapper wareReportMapper;

	@Override
	public Page selectBalanceList(Page page, Wrapper wrapper) {
		SqlHelper.fillWrapper(page, wrapper);
		page.setRecords(wareReportMapper.selectBalanceList(page, wrapper));
		return page;
	}

	@Override
	public Page selectReceiveDetailsList(Page page, Wrapper wrapper) {
		SqlHelper.fillWrapper(page, wrapper);
		page.setRecords(wareReportMapper.selectReceiveDetailsList(page, wrapper));
		return page;
	}

	@Override
	public Page selectReceiveSummaryList(Page page, Wrapper wrapper) {
		SqlHelper.fillWrapper(page, wrapper);
		page.setRecords(wareReportMapper.selectReceiveSummaryList(page, wrapper));
		return page;
	}
}
